<template>
  <keep-alive>
    <component
      :is="currentView"
      @jumpToAnalyzeData="jumpToAnalyzeData"
      @jumpToAnalysisModel="jumpToAnalysisModel"
    ></component>
  </keep-alive>
</template>

<script>
import AnalysisModel from "./components/AnalysisModel.vue";
import AnalysisData from "./components/AnalysisData.vue";
export default {
  components: {
    AnalysisModel,
    AnalysisData,
  },
  data() {
    return {
      currentView: "AnalysisModel",
    };
  },
  created() {},
  methods: {
    jumpToAnalyzeData() {
      this.currentView = "AnalysisData";
    },
    jumpToAnalysisModel() {
      this.currentView = "AnalysisModel";
    },
  },
};
</script>

<style></style>
